using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect31-设置目标血量为几点", menuName = "Skill/Effect/Effect31-设置目标血量为几点", order = 31)]
public class Effect31 : EffectBase
{
    public int healthCount;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0) return;

        foreach (var target in targets)
        {
            target.ChessDetail.OriginalHp = healthCount;
            target.ChessDetail.ExtraHp = 0;
        }
    }
}